Load the BirthdataNC into R and use kable to create a table with mean and sd by gender.
| Gender | Average Weight | Sd Weight |
|---|---|---|
| female | 6.903 | 1.476 |
| male | 7.302 | 1.517 |
Make an interactive histogram of weight by gender that also contains density plots in it. Add a vertical line with the average weight
## 0% 25% 50% 75% 100%
## 1.00 6.38 7.31 8.06 11.75
## 0% 25% 50% 75% 100%
## 1.00 6.25 7.13 7.75 11.63
## 0% 25% 50% 75% 100%
## 1.38 6.56 7.44 8.31 11.75
## 0% 10% 20% 30% 40% 50% 60% 70% 80% 90%
## 1.000 5.392 6.000 6.500 6.866 7.130 7.380 7.630 7.940 8.380
## 100%
## 11.630
## 0% 10% 20% 30% 40% 50% 60% 70% 80% 90%
## 1.380 5.476 6.310 6.866 7.190 7.440 7.810 8.130 8.488 8.964
## 100%
## 11.750
## [1] "Weight for 75th percentile for the whole population 8.31"
## [1] "Weight for 45th percentile for female population 7"
What can you say about the distribution by looking at these graphs. Here you have to use another geometric that also ilustrates the distribution of your data. geom_violin() Explain what this graphs does.
Using the normal distribution and the t-studnet find the critical values for \(\alpha=10% and 1%\)
| \(\alpha\) | T-student | Normal-right |
|---|---|---|
| 0.10 | 1.282 | 1.282 |
| 0.01 | 2.330 | 2.326 |